addition fixed in js code