Updated gallery JS and css to have a loader and other useful things