Added alert in js