Fixed Google Chrome's browser compatibility issue.
Added js function to detect user browser.