added .js file to modularize functionality.   Added docs/.