Add Ajax to JavaScript