Make modal a jquery plugin.