compares ruby and JS methods to get current year