Code cleaning on common/lightboxes.coffee