Use Underscore.js instead of jQuery but if jQuery is available then use it.