Formatting side panel, including moment.js for datetime format, and misc improvements to code style