Fixes error from hashchange plugin
Cleaned up editor code