Check that js directory exists before installing