fix javascript warnings