Restore JS code