Fixed an off-by-one bug in js_scansubs and js_scandirs. Fixed js_getnstime, can't change value of argument (now returns new-scan time).