Refactor: fix leteral for ruby 1.8.* and make ja local