Add a function as IE8 does not support object.keys
Convert indents to spaces