changes to address comments in PR

- formatting
- found bug in the mozilla parser api