move tests to chai
Link to tests, clean up widget code a little
move custom stuff into properties object
update test for story.properties, some code style