fixing some javascript warnings