Updated to read position by injecting code into page