Making demo application html5mode compatible.