Update JavaAppletHandler.php

closes #2