add support for html5 mode
Merge branch 'master' into housemon-try
add support for html5 mode