Added var to js plot