adding pause button js