minor tweak to js files