Fixed issue with parsing multiline style and script tags

Previously this code would parse incorrectly because in JS RegExp dot doesn't include new line.

    <style>
      a { color: red }
    </style>