Fix regexp expression termination

Javascript statements to be terminated by newlines and EOFs.

Tested with:

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