An extension to the html5 plugin to work on webmap