Fix javascript tests