week 7 recap
simplify the JS