NS_ERROR_ILLEGAL_INPUT: Component returned failure code: 0x8050000e (NE_ERROR_ILLEGAL_INPUT)[nsIDOMLocation.replace)

Hello,
I tried to had js script in order to customize attributes based on an example from IBM site, then I put my script, but I have now a problem : I can no more access to work item menu and when I try to create one I have : NS_ERROR_ILLEGAL_INPUT: Component returned failure code: 0x8050000e (NE_ERROR_ILLEGAL_INPUT)[nsIDOMLocation.replace)
What is the problem? I did not find issues on Forum.
Thanks and regards
Christelle