improved check for bootstrap to avoid jQuery error