Updated jQuery plugin to handle changed json format