Revert "commented out inline javascript (line 642) that violated chrome's csp, plus typo fixes"

This reverts commit c37830366fd7f419a0901105b40bdf9b6e29158c.