JavaScript adjustments:

- IE<9 compatibility.
- Strict comarison of strings.
- Renamed `$.jsindex` to `jsindex` to avoid conflicts with jQuery.