scriptreplay in javascript. (C) 2011 Johannes 'josch' Schauer <j [dot] schauer [at] email [dot] de>