Made a few fixes in javascript.
- Skip foreverframe transport because of a bugs with escaping.
- Return false for isNearTheEnd if element undefined.