minor js code tweaks
fix a range glitch when the timeseries' value is constant
dev repo trasferring