Resolve $ is not a function problem