Remove First Element From Javascript Array Sort Objects Into Categories