Updated JS documentation