Deleted Javascript functions for Gallery