Example App Ionic + Parse Login in JavaScript