Added settings in js file to fix the javascript error.