updated js files and documentation