fix to js