Organize into common JS project structure

Just moved the files around a bit and updated the paths. This helps future support for build tools like GruntJS and keeping test files separate from source files and separated from distribution files.