Fixed several bug on firefox
Added github repo ribbon
Merge pull request #1451 from pandamicro/NPM

Fixed several bug on firefox