Update anagrams_for.js

Using shift, unshift, pop, and concat.  Work in progress.