working ruby to js fen