you are introducing a dependency to jQuery in AbstractChosen which is the code shared between the jQuery and Prototype versions, so this is wrong