make java POJO object work on JAVASCRIPT environment.