Creating OGM with JS