Register functions.js in child