added index example
using clean console to validate in a browser, fixes #1