moved more design documents to JavaScript