Builds javascript namespaces based on folder structure