Fixes for Prototype to jQuery