Workaround for incorrectly reused regexp (see http://stackoverflow.com/questions/2141974/javascript-regex-literal-with-g-used-multiple-times)
Merge pull request #10 from jjmontesl/master

Workaround for incorrectly reused regexp