Http Method From Request In Javascript