fix Ajax URL doesn't contain actual controller URL

fix for #1