added my solution to anagram.rb, and also included my attempts at solving it with javascript in the anagram.js