Fixing path problem in root.js