Javascript Use String Variable In R