fixed javascript (unnecessary script tags in js file)