Update parser.js

Adding scaling of translating that was wiped by some commit