Refactored redoculous.js to optionally enable pushstate support