Added timeout to Autosave JS and made check loop happen at 20 seconds #641