Added the while loop

Got the while loop working but having some trouble trying to get the
browser to parse to the console.