Fix regexp expression termination

Javascript statements to be terminated by newlines and EOFs.

Tested with:

 - node -e 're = /GET (\\S+) HTTP/'
 - echo "re = /GET (\\S+) HTTP/\nconsole.log(re)" | node