Speed test your internet connection from javascript.