JS File that needed fixing

this js file haad an error

closes-bug: #01