suppress javasript permission error