Controller Javascript

Created controller.js and started work, on getting a responce.