Add new JavaScript-based test case