added close/loading button for lightbox, removed unused js