minor update javscript