fixed #64 and #70

lightGallery.js is ok now, but lightGallery.min.js has not been merged the bug fix of #64.