escape quotes in btName when outputting block controls javascript (Take 2)

Prevent js error while in Edit Mode if a btName has quotation marks in it. This pull request supercedes #1265
Merge pull request #1274 from jordanlev/patch-3

escape quotes in btName when outputting block controls javascript (Take 2)