Update user-extensions.js

Added loadedWhen function