Added alert to js file