Fix JS reference to not be local