javascript update, removed unnecessary files, javadoc added