modify and simplify fancybox function in script.js.
Merge branch 'master' into gh-pages

* master:
  modify and simplify fancybox function in script.js.