Tests for JavaScript