Fixed bug in JS regexp handling.