Fixed "object is not a function" typeError in app.js when instantiating these objects.