Fix js error in v2 docs
Improving the docs a bit.