$(function() { if ('app' !== $('body').attr('id')) { window.top.location.href = 'http://www.surveygizmo.com'; } });