Algorithmic music with JS