minor update to javascript