log javascript errors using crittercism