fixed bug where user clicks out of the app then twice into it

added a variable waiting that keeps track of whether the app is in the
ready state

changed to port 8080 for node server