Umdify everything and added tests with karma