Ensure $ is defined.