adding karma for unit testing javascript