Pure javascript(client side) implemetation to save and restore widget's position. Using jquery, json and cookies.