Move vdModule init to js file