Changed RJS approach to jQuery