remove ajax from custom js file and put in main plugin file