Preserve <script> in the body and detect LiveReload.js to avoid multiple refreshes

Resolves #8