fixes

js function