made pages posts and filtering them based on YAML -- cleaned up js so it doesn't error when it gets data it does not like.