changed js compatibility reason