fixed Javascript Error Message