history ref
move changePage call out to method
move hashchange url handling to method
_handleUrl refs to external resources wrapped, test simple case