Fixed lowercase issue for indexof js and awesomized the forEach js script