Initial commit experimenting with while loops in javascript