Fixed build function for server.js. Added an even more terrible regex for maintaining post content wen reloading.