bind java objects to custom js objects