Change format of factorial block in testcode.js