Swapped out XMLHttpRequest for a custom module