... var aMapper = new MapperElement("myID"); aMapper.insert("#mapper"); $('#myID').append('This is a test'); ...