onclick - submit data and reload the page - how to?

The above code doesn’t seem to be working - it has a unexpected token. Any suggestions?

Screenshots:
CloudApp
CloudApp