Fix typo and undefined value
Browser detection by operating system

Close #38.