Restore javascript comments processing

Ported code for processing javascript comments from
pre-Rhino-1.7.2 code. Without it comments gives
syntax error and break parsing logic.