Generate javascript documentation