error in javascript

script didn't run because of a syntax error