Split out js into separate files for controllers.