correct error in js.js and made minor changes in database