Updated js_vars to support associative arrays.