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