fix JS errors
horrible hack to fix time chart display bug in chrome