rates js