added chai, added more karma functionality, got tests working