Reformatting script used in views/pages.