Fix js error when options are not passed.