Created all the psuedo code for the JavaScript program