Renamed functions to app.js