Converting existing autocomplete field to custom Drupal field
I ended up solving this by using hook_menu() to create an AJAX tie-in with a custom callback function and then tied the form field to the AJAX path with 'autocomplete path' => '/...' in the field parameters. No need for any custom JS to make it work.