Update Checkbrowser.js

- Using classname instead of className.
- Turning in an anonymous function to avoid adding unnecessary objects in the window.
- Now it is declaring all variables in a single sentence.