First, partial cleanup of js files.