Apply jshint standards to Gallery widget js