Added javascript alerts