fix buy form js