Fix creating javascript array for JS signature prefs page