Getting data from JS to RB