fix a bug on .on, and fix some bugs in d3.ajax
add beforeSend support. Backbone test is borked but this will do