blog js vs ruby loops