correct syntax to link to app.js function