added alert to js file