minor fixes
move javascript to js/ directory