Fixed requestURL function in example code