Add html5Mode and a way for Rails to use it