Fix formatting the style attribute
Refactor for faster array iteration
Merge pull request #10 from nkm/master

Little bugfix :)