Removing jQuery $(document).ready()
Changing the browser check logic

...to JavaScript only