Change Js to defining a variable