add js_array and update a post