adding fix to js