fixing script regex to support script tags on the same line