fix term-hours js for no exceptions