corrections in js and default settings