fixed script name
Replaced getElementbyID with local variable