Improved javascripts and java to html interface