tighter version of uilayer-standalone.js