Update user-extensions.js

Fixed bug with nested includes and flow control