fix for js