Use prototype method to avoid double escaping quotes.  Check type of key before inserting rows.  Prevents addition of extra rows to table when pasting JSON.
Re #1 Remove ZeroClipboard to prevent interference with Magento's fuile uploader