hide errors from javascript console