Some upgrades and HTML5 compatibility

- HTML5 compatibility. Better compatibility with most devices.
- Less code, better response.