Made dropdown.js target proper dom node

Fixes #191