More refactoring for houndci

Move loadScribbles function declaration out of the loop