Correct resizing to add margin
Updated handling of header if moment.js doesn't exist
Include moment.js in demo index.html (from cdn)