Some php, some javascript - used for the migration to Engaging Networks