Close button hooked into javascript, works now