Resolve $ is not a function problem - 1