refactor json file names and javascripts