Simple grid implementation in JS, supports custom styles and events