Create discrete element for trailSource

broke out a jQuery function to return two discrete elements