Moved trip friendly display code to javascript