Javascript port of roda for ruby