Fix jquery and error report javascript errors