Fixed jslink errors. Prepared Karma setting for travis build.