draw base structure, append content, rebuilding js structure