Some changes on app.js and jquery