easy way to wrap js object to java object