Make js2 dependency optional