Adds initial JS

Adds initial JavaScript for handling the popups. Also, fixes incorrect
filename for additional popup partials and adds initial structure to
remaining partials.