fixed closing shadowbox on overlay click

'modal = true' is not closing the shadowbox on overlay click