added script enqueueing and invocation