Using JS functions from Parse.com