added js build tasks and set up karma test env