Removed jQuery dependency

Fixed a bug on history pushstate.
Added reset on ESC key press.