ExtJS custom components & function