Javascript Empty Array Element Remove