[js]: Fix post data's index