js compatibility file