Updating js reference