Fix javascript specs