Likes: move inline js to separate file, enqueued in footer

Makes it easier to manipulate that js later on
Fixes #868