revise javascripts_dir to match folder structure