Attempt at using the module.controller function instead of globals, as suggested by the Angular docs.