bug fixed: script now inserted correctly before other scripts inside body