Revert "Revert everything to have script in html"

This reverts commit c0897701abed46d55208437b5a1c3ccb88b630e1.
Trying again