Added alert to js