Merge pull request #17 from cesanta/unit_test_pass

Ensure unit tests pass
Fix regexp expression termination

Javascript statements to be terminated by newlines and EOFs.

Tested with:

 - node -e 're = /GET (\\S+) HTTP/'