integrated all changes into original .js files to prevent obsolete blocks