update with RequireJS and remove the denpendency of Dojo