Update parser.js

Fixes parsing of empty style tags.
And fixed a big bug that was there.
I was scared that trim would not  take away tabs , newlines, so i check  for presence of printable character inside.
Any, at least something.
Useless?