Added script for Mag page.