You could use just use Java, encoded into your page. Then essentially you would be running a program instead of just a webpage... Unless I'm not getting what your saying at all