Fixed the downArrow directive's styling
Consolidated some JS to speed up load times