Added check for DOM and HTML5 Savvy browsers, to ensure only newer browsers run javascript.