switch javascript files