Fix javascript documentation code