Builds JavaScript namespaces based of folder structure