Javascript Minor changes