Lots of changes here. Might be worth creating an hgdasheditor.html and serving that instead?