added alert to js