updated js alerts