Fix javascript warnings