modified javascript files with new gallery