Draw kbgrid with JavaScript