Fix reading of last data saved
Fix some missing semicolon for work with compressed JavaScript code