refactored local storage saving to use a settings object, it now works ok (but not sure if it was partially broken due to beta 2. Added removing of the single quote escape sequence