JSHinted and fixed ~50 little things.