Fixed the hidden button locations, and cleaned up the JS.
Merge branch 'code-editongithub' into preview