moved like button code to js file