Fix JS task to be async. Should fix travis.