Cleaning up JS a bit.
Adding option for default expansion state of posts.