Refactor

Refactor application.js as one function that targets div that is being
hovered on and replaces content based on data attribute