Ignoring javascript exceptions