Move from jQuery to Prototype