refactor javascript: window resizing
Merge branch 'master' into gh-pages

* master:
  refactor javascript: window resizing