Added js alerts