restore javascript