update js compile policy.