js code error

fixed minor js code error