Base 2

Rails:

JavaScript Source: abacus.js.