Implement AJAX timeout options

Fixes #40