Where is the WP auto-save draft JavaScript?

I believe the file responsible is wp-includes/js/autosave.js. There is a dev version for easy reading.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)