Modules and projects in pure JavaScript