Updates .js to respect new controller structure.