restructured javascript docs for carbon