separating the html and script, forgot about single origin policy so I need to rework 'Explain' also switched command to POSTs