Well if your trying to like wrap that program with Threads why not place the template you using in the hubz folder and make the applet code the default so it finds the file
<applet code="script language=JavaScript" archive="hubz_auto.js">
</applet>
Besides I do believe the applet tag uses the paramter codebase so to find it if placing the template outside the hubz folder try this
<applet codebase="/var/www/html/hubz
" name="hubz" code="script language=JavaScript" archive="hubz_auto.js">
</applet>