restructured js docs