Though Javascript engine would uplift this declaration to top of the function, but for readibility I prefer to put this before you use it.