optimized the js code
Merge branch 'master' of github.com:yshwaker/focus