* The js code became a stand-alone file and was partially revised. It is convenient because of php code cleanness and it shortens the amount of code of a document edit frame.