Upgraded PE getData function to use JSON parsing where data- includes JSON and a fallback where malformed (for backwards compatibility with metadata.js). Also updated working examples to use JSON strings.
Corrected working examples.
Merge pull request #1538 from pjackson28/v3.0

Upgraded PE getData function to use JSON parsing