JavaScript with a lot more options and callbacks for Bootstrap 3