make it work with browserify and a fetchRows functions