Simplify API-based parsers in JS

Change-Id: I2634b82498aa6bc6b7fab9cbd81cbecede3d9d34
Merge "Simplify API-based parsers in JS"