add js snippets
Merge branch 'master' of github.com:xiaohanzhang/init