removes requirement for fixed width of hour in pixels (uses percentage of document.width)