ability to pass javascript DOM objects and/or custom objects to create inputs