Javascript Filter Out Empty Strings From Array To Object