imoplementing requirejs phase 1