Stop javascript errors breaking everything else!