pjs compatibility refactor: replace static access of PApplet methods to with H.app()