Javascript wrapper for creating Topcoat DOM element