convert to javascript, begin work to allow multiple testem configs, not tested, tests soon