fix up script so it injetcs into dom