window onload function for packery