Added functionality for bootstrap modal. Also had to specify the order of the bootstrap js plugins manually, because some of the plugins depends on another.