Fix rewritePage when <!-- <body> --> exists (fixes #364)
Stop disabling inline <script> (fixes #384)