Instead of writing whole chain of commands like in here it's possible to use a short version with bs.modal.load function.
bs.modal.load