style(formatting) move variable assignment to top of function

Move variable assignment to top of function, add space after initial hash on time
comment.