Changed JS Code