Added Self Executing Anonymous Function to app.js