please detect OS in javascript to avoid depend on Makefile too much. see [here](http://stackoverflow.com/questions/1418896/detect-operating-system-from-firefox-extension)