Fix lint errors in gallery and add its JS files to lint.sh