Change from jQuery GET function to XMLHttpRequest