Change to use not $.get but XMLHttpRequest