Fixes #1116

- Fixed small bug in Jakob's nice suggestion
- added first automated interactive spec! (http://jsfiddle.net/Px7sq/)