Adds options.animate parameter for modal animation

Defaults to no animation