access js arrays from ruby