update javascript in Post window

update