[cango] refactor : user the array to defined the javascript config