multiwebmode compatibility with html javascript