Changed javascript error detection mechanism .