Move js scripts from templates/js/ to js/.