Dotallfix

The dotall modified (`s`) doesn't exist in Javascript, so instead use this workaround.