'Since we only have chemcalc preview this input, check to see if it
matches the corresponding dispatch and send it through if it does'

def handle_ajax(self, dispatch, data):

    if (dispatch == 'preview_chemcalc'):
        return self.preview_chemcalc(data)
    return {}
