fix #4 support RequireJS