filter for Angular JS to format any object