started new front end, more a rewrite than refactor, trying to make JS more modular and have a single entty point