fixed approve button in js