Fix invalid JS in docs