Convert parse.js to get a feel using real code