Update parser.js

Adding better support for parsing styles.