mongo js parser