ruby-like code performs in javascript.(WTF).Created for fun.