A set of javascript and procedure to reorder and rewrite AWR