Add failed test.
Enhance tests for debug.
Add failed tests.
Fix JavaScript parser.
Fix JavaScript parser.
Refactor code.