Added hourly reflection js after refactoring to improve testability.