got rid of the jQuery dependency, closes #16 and #27