implement destroy methods
implement graph destroy method
minor reformatting in ui
Add jshint task
fix jshint errors in code