JavaScript adjustments:

- IE<9 compatibility.
- Strict comarison of strings.
- Renamed `$.jsindex` to `jsindex` to avoid conflicts with jQuery.
Merge pull request #1 from samdark/js-adjustments

JavaScript adjustments: