adding basic jquery ajax support and rspec for json api