Make js directory optional