add pause and resuming
update compiled javascript