fix magnific-popup js error when using django-compressor