popup boxes in js

this code demonstrates the usage of popup boxes in js