The point is, there is no supported way to refresh the Homepage or contextual grids in Dynamics CRM 2011 post UR12. Therefore, I could not recommend you to implement this functionality.
// Parameter is Entity Type Code. 1 is Account Entity Type Code window.refreshCurrentGrid(1);
Do you use another method in order to implement this functionnality?