continued work on the JS practice problems