todone but with ajax and the great wall of javacript