Create visual histogram in the browser using only HTML5 and JavaScript