Demo Page - Prevent passing dom elements into JSON.stringify

fixes #1063