Update spritz.js

solving issues #102 and #97

for the longer run it might be considered to have an global object 'spritz' with properties (i.e state running) and controling functions inside a closure instead of global variables and functions.