updated js sources and added color to file creation, minor legacy code deletions