refactor likeSubmit.js