fix to js reference