Remove jQuery dependency from my code (although it's still needed in raphael sketchpad)