Javascript implementation of Money and Money-rails