Adds support for History API