Updated the way magnific popup is included

with @jlavoie13 @TimBHowe @matt-h