Did quite a lot of work in test.html and testFiddle.js, this is getting neat.