fix for js in writings