Move JavaScript files from code/ to root of the repository

The intent is to make the source code more readily available,
and shorten the path to the files when including the repository
as a git submodule.
Enhance wording