Added Karma-Jasmine tests for JS exponent and mergeSort functions.