Restore map javascript