Split front-end JS into manageable files.