use karma to tests
tweak compile script, add run.sh