getTrailer function data portion works; promise doesn't work.