reorder function order - no change of functionality
added document as a jshint global
improved dynamic screenshots and diffs #5