split up controllers, JS dependencies in new temple