Added js functions for Parse