Using 'same origin policy' for conditional JavaScript behavior
amy-shelton.blogspot.com