I had a similar problem when I was running my examples outside of a web server. I could edit, but then the edits would all disappear and nothing would save. Once I put my page inside of a web server (something like tomcat or jetty would suffice) it all started working correctly.