minor changes to javascript files