Fix some javascript warnings