added some js to test where the error is located