Adding utilities to x.js api. This should be coming from carousel, but I need to think on it a bit more.