fancy currency weight javascript