Get the working hours between two dates in javascript