Fix dangling comma in ajax