Updating some variables and disabling javascript