fixed example for non-inlined scripts