added design section and fixed issue with generating JS navigation functions;
problem with not including $_SERVER['DOCUMENT_ROOT'] while writing to filesystem