localizing more javascript files and also changing import files to reflect those changes