Restructured directory system to take advantage of _references.js