Implementation of Mozilla's Parser API in JavaScript