Update parse.js

added required function