javascript does not deal with very large integers gracefully