fix documentation, javascript generated