History API fixes
[js/smallframework.js] events binding fix for history api