The calculation of frequency-dependent polarizabilities using current density functional theory