Trailing whitespace on this line and the "var pause = ..." one.  Can you delete it?