extract private props exposed by the library
drop redundant DOM.ready call
history handler uses late binding + refactoring