Move reset definition above usage

Allows this file to replace application.cpp in a local build without the addition of a separate declaration line. Doesn't matter in Spark web IDE because we add the declaration during preprocessing.