looking to perfect the app
rewriting the logic and flow for the javascript file implementing the object literal method for declaring functions