docs: def __type2js(cls, value):
          """
          :Description: Convert python value to executable javascript value by type.
          :param value: Value to transform.
          :type value: None, bool, int, float, string
          :return: string
          """
          if value is None:
              return 'null'
          elif isinstance(value, bool):
              return 'false' if not value else 'true'
          elif isinstance(value, (int, float)):
              return '%s' % value
          elif isinstance(value, dict):
              return json.dumps(dict)
          return '"%s"' % value