Separate the controller javascript to files.