updated html5 wrapper

following @danyaPostfactum's suggestions