Update detection methods for AMD and RequireJS