Converted two controller.js scripts.