This file used to be private to the gallery app. Now it is in the shared directory. The only changes are to make jshint happy.