Fixes Browser Uncaught SecurityError