clean up capsule.js requirements and jquery shim