Fix bugs

* Syntax Error from previous merge operation
* Wrong localStorage key prefix
* "Maximum call stack size exceeded" error occurs when attaching items
  on Moogle writing