Create PauseMenu.js

replaced deprecated code