Remove redundant lightbox code from common.js