Created object container
added alert
Added HTML code to demonstrate use. Tightened up the code.