switch thumbnails to page2images
fix jshint and code clean up
Merge remote-tracking branch 'origin/page2images' into page2images