javascript quoting problem in per-hour charging