#javascript algoritma