apply js formatter
adding karma based jasmine tests