Updated plugin to use bootstrap javascript conventions