Added project to NetBeans and modified Ajax code