Javascript Filter Out Empty Objects From Array