patching lively files for requirejs compat
cleanup