update JS with more variables