Java object math html