Revert "moving root.js up the directory tree"

This reverts commit 029e502feea0c442aa15aa2d54498fdae5c76f9c.