lets try this in js