Javascript makes button send alert