javascript version of the ADSL speed calculator