Updating new array methods and removing bloat code for future jquery