Update pause.js

"use strict" + optimization