js gets data from rw api