added click function to js file to move purchase div