Adjust JS doc hierarchy