Moved global PYPO js variable to window.PYPO