refactor javascript for trip button listeners
quickie commit for access