Modify js to alert