refactoring to use more modules
Merge branch 'master' into gh-pages
adding resizer.js