Added js beautify funcs