cleaned up most of the javascript wip grid