merged js into html document, added column coloring functions