added ruby to javascript