Update and rename docFunctions.js to init.js