fixed the javascript issues

dfas