Fixed bug #61 (Parser hangs on some input)

This fixes bug #61 (Parser hangs on some input).

The bug is caused by `_reTagName` (`/^\s*(\/?)\s*([^\s\/]+)/`) doing too much backtracking when the input string contains many whitespaces.