removed dbg-code, flags are always cleared, load js at the end
include offline-version in packed archive