Got the basic AJAX/JSON request working! Found bug in Dicer library as a result