fixed test and line in js