index get post with javascript