Added query to go page

Wrap script outputs in one master <script> tag

htmspecialchars_decode script from database

Make sure the meta refresh only triggers if redirect variable is blank.