Plot outputs to js