Added js generating grid view, modified schema