completed rev 1 of app js