Fixed dependencies.
Made jQuery a dependency (and parameter to factory).