Fix invalid js reference