Made resolve request javascript