editted application javascript to hopefully make dropdowns work on mobile