Added support for custom AJAX calls

Fixed dandelion/issues#55