readded AMD RequireJS support
added AMD RequireJS support