[rui] restructure the js folder; add ruby folder