Javascript: Fix for IDE ticket 190.