init webapp with AMD