Added dollar sign to window.alert statements