// your custom app logic goes here: (function(){ var turbo = Turbo({ site_id: 'APP_ID' }) $('#btn-login').click(function(event){ event.preventDefault() // These values should come from a form tag in an html document: var credentials = { username: 'mj23', password: 'chicagobulls' } turbo.login(credentials, function(err, data){ if (err){ alert('Error:' + err.message) return } alert('User Logged In: ' + JSON.stringify(data)) }) }) })()