refer to critical js