replaced more hardcoded drag/drop event handlers with jquery.on()