Update parser.js

Use parseUnit to normalize pt,pc,mm,in,cm to px.