added support for html 5 app