Create controller.js

Holds functionality to replace strings in elements before inserting to DOM, append or prepend to DOM elements, and slideToggle animation.