Fixed recursision in gruntfile and fixed bug in IE