hero jade file refactor